﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="HighlightNewsAtListPage.ascx.cs" Inherits="GUI.Controls.News.HighlightNewsAtListPage" %>
<div class="cathighlight clearfix">
    <div class="sub-news1-left fl w428">
        <asp:Literal ID="ltrTopItem" runat="server" />
    </div>
    <ul class="sub-news1-right fr w216">
        <asp:Literal ID="ltrOtherItem" runat="server" />
    </ul>
</div>
<script type="text/javascript">
    (function () {
        $(".sub-news1-right li:first").addClass("first");
        var leftDiv = $(".cathighlight .sub-news1-left");
        var rightDiv = $(".cathighlight .sub-news1-right");
        var d = leftDiv.height() - rightDiv.height();
        if (d > 0) {
            var count = $(".cathighlight .sub-news1-right li").length;
            $(".cathighlight .sub-news1-right li").each(function () { $(this).height($(this).height() + d / count); });
        } else {
            leftDiv.height(leftDiv.height() + d * -1);
        }
    })();
</script>
